.modal {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0);
  height: 0;
  opacity: 0;
  overflow: hidden;
  .panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    text-align: center;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 30px 15px 10px;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
    word-wrap: break-word;
    .image {
      width: 30px;
    }
    .content {
      margin-top: 16px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
}
.show {
  height: 100%;
  opacity: 1;
  animation: show 0.4s;
}
.hide {
  height: 0;
  opacity: 0;
  overflow: hidden;
  animation: hide 0.4s;
}

@keyframes show {
  0% {
    height: 0;
    opacity: 0;
  }
  1% {
    height: 100%;
    opacity: 0;
  }
  100% {
    opacity: 1;
    height: 100%;
  }
}

@keyframes hide {
  0% {
    height: 100%;
    opacity: 1;
  }
  99% {
    height: 100%;
    opacity: 0;
  }
  100% {
    height: 0;
    opacity: 0;
  }
}
